<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PID_Study: E:/STM32CubeIDEWorkspace/noRTOS/PID_Study/Drivers/BSP/Inc/serial.h 源文件</title>
<link rel="icon" href="Doxygen-55px.png" type="image/x-icon" />
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="Doxygen-55px.png"/></td>
  <td id="projectalign">
   <div id="projectname">PID_Study<span id="projectnumber">&#160;v1.0.0</span>
   </div>
   <div id="projectbrief">doc for PID_Study</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a href="dir_0c97d201d54b8b5817233953fc3aadb6.html">STM32CubeIDEWorkspace</a></li><li class="navelem"><a href="dir_f3310f12da31771255acec658cd4246d.html">noRTOS</a></li><li class="navelem"><a href="dir_8022218a35d1971722714ae72b00e870.html">PID_Study</a></li><li class="navelem"><a href="dir_17bc370c857333bc4166d76f67bb735c.html">Drivers</a></li><li class="navelem"><a href="dir_b62ba9d628590829d5c152676ba50098.html">BSP</a></li><li class="navelem"><a href="dir_a3931c23c62a4333dd07fbd46d82639c.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">serial.h</div></div>
</div><!--header-->
<div class="contents">
<a href="serial_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#ifndef __SERIAL_H__</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#define __SERIAL_H__</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;main.h&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;stdarg.h&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="serial_8h.html#a8c651ff98c42106f3a14ee4225677cc8">   21</a></span><span class="preprocessor">#define TXBUFFERSIZE 100</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="serial_8h.html#a29d12c67e4b6e0ff96d7aa793757b094">   27</a></span><span class="preprocessor">#define RXBUFFERSIZE 200</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="serial_8h.html#a45ba202b05caf39795aeca91b0ae547e">   33</a></span><span class="preprocessor">#define TIMEOUT HAL_MAX_DELAY</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="preprocessor">#ifdef NDEBUG</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#define UartSendString</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#define UartSendString Uart_FormatSend_unblock</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="keywordtype">void</span> <a class="code hl_function" href="serial_8h.html#a9feb27d0c85669bf4ae55525f19b91ae">Uart_FormatSend_block</a>(UART_HandleTypeDef *huart, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="keywordtype">void</span> <a class="code hl_function" href="serial_8h.html#a499cd505bf70f88dd03d6f9704097ba3">Uart_FormatSend_unblock</a>(UART_HandleTypeDef *huart, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="keywordtype">void</span> <a class="code hl_function" href="serial_8h.html#a8d8d3ce7f5845ab4a3aabb05cff2e859">Uart_ReceiveToBuffer_block</a>(UART_HandleTypeDef *huart, uint16_t *RxLen_finally);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span><span class="keywordtype">void</span> <a class="code hl_function" href="serial_8h.html#a5780f207d446657bace61d8d87d0a7c8">Uart_ReceiveToBuffer_unblock</a>(UART_HandleTypeDef *huart);</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span><span class="preprocessor">#endif </span><span class="comment">/*__SERIAL_H__ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aserial_8h_html_a499cd505bf70f88dd03d6f9704097ba3"><div class="ttname"><a href="serial_8h.html#a499cd505bf70f88dd03d6f9704097ba3">Uart_FormatSend_unblock</a></div><div class="ttdeci">void Uart_FormatSend_unblock(UART_HandleTypeDef *huart, const char *format,...)</div><div class="ttdoc">格式化非阻塞发送字符串到串口</div><div class="ttdef"><b>定义</b> serial.c:36</div></div>
<div class="ttc" id="aserial_8h_html_a5780f207d446657bace61d8d87d0a7c8"><div class="ttname"><a href="serial_8h.html#a5780f207d446657bace61d8d87d0a7c8">Uart_ReceiveToBuffer_unblock</a></div><div class="ttdeci">void Uart_ReceiveToBuffer_unblock(UART_HandleTypeDef *huart)</div><div class="ttdoc">非阻塞方式接收数据到缓冲区</div><div class="ttdef"><b>定义</b> serial.c:66</div></div>
<div class="ttc" id="aserial_8h_html_a8d8d3ce7f5845ab4a3aabb05cff2e859"><div class="ttname"><a href="serial_8h.html#a8d8d3ce7f5845ab4a3aabb05cff2e859">Uart_ReceiveToBuffer_block</a></div><div class="ttdeci">void Uart_ReceiveToBuffer_block(UART_HandleTypeDef *huart, uint16_t *RxLen_finally)</div><div class="ttdoc">阻塞方式接收数据到缓冲区</div><div class="ttdef"><b>定义</b> serial.c:57</div></div>
<div class="ttc" id="aserial_8h_html_a9feb27d0c85669bf4ae55525f19b91ae"><div class="ttname"><a href="serial_8h.html#a9feb27d0c85669bf4ae55525f19b91ae">Uart_FormatSend_block</a></div><div class="ttdeci">void Uart_FormatSend_block(UART_HandleTypeDef *huart, const char *format,...)</div><div class="ttdoc">格式化阻塞发送字符串到串口</div><div class="ttdef"><b>定义</b> serial.c:21</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
